<?php namespace App\Http\Requests;

class CheckVerifyCodeForPhoneToAuthSession extends Request
{
    public function authorize()
    {
        return true;
    }

    public function attributes()
    {
        return[
            'phone'       => '手机号码',
            'verify_code' => '验证码,'
        ];
    }

    public function rules()
    {
        return[
            'phone'       => ['required','regex:/1\d{10}/'],
            'verify_code' => 'required',
        ];
    }
}